void send_message(mp_msg *msg,int len,DWORD dpid=0)
Parameter | Type | Description |
---|---|---|
msg | mp_msg * | message to send |
len | int | length in bytes of message |
dpid | DWORD | player to send message to: 0 - all players <>0 - player id of destination player |
None
This function sends a multiplayer message. The message can have any size, but you must keep it as small as possible for a better performance. The message header must be as a mp_msg struct.